home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_6.lha
/
8_6
/
8_6_doalloc.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
316b
|
16 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ allocate some space for the buffer
nt streambuf::doallocate()
base = new char[BUFSIZ];
if (!base)
return EOF;
setbuf(base, BUFSIZ);
alloc = 1;
return 0;